<template>
    <div>
          <!-- 输入框 -->
    <div class="ipt-box">
      <div class="box">
        <!-- 搜索icon -->
        <div class="iconfont icon-sousuo"></div>

        <div class="ipt">
          <input type="text" placeholder="震国神帅" @click="inputFun" />
        </div>
      </div>
      <div class="iconfont icon-qiandao"></div>
    </div>

    </div>
</template>

<script>
export default {
    methods:{
      inputFun(){
         this.$router.push("/search")
      }
    }
}
</script>

<style lang="less">
     .ipt-box {
 width: 100%;
  height: 26px;
  margin: 0 auto;
  padding: 10px 0;
  position: relative;
  .box {
    width: 290px;
    height: 100%;
    display: flex;
    border: 1px solid #dddddd;
    border-radius: 10px;
    background-color: #efefef;
    line-height: 30px;

    .icon-sousuo {
      margin-left: 15px;
      margin-right: 12px;
    }
    .ipt {
      line-height: 30px;
    }
    .ipt input {
      height: 20px;
      border: none;
      background-color: #efefef;
      outline: none;
      font-size: 18px;
    }
  }

  .icon-qiandao {
    width: 16px;
    height: 16px;
    font-size: 22px;
    position: absolute;
    top: 37%;
    right: 10px;
    color: #020202;
  }
}
</style>